package com.songcha.library_network.api




sealed class ApiResult <out R>{
    data class Success<out T>(val data:T):ApiResult<T>()
    data class Error(val exception: Exception):ApiResult<Nothing>()
}


/*
fun interface IApiResult{
    fun onSuccess()
    fun onError(exception: Exception)
    fun onNoNetwork()
}*/
